<?php /* Smarty version 2.6.22, created on 2009-05-22 17:19:22
         compiled from /home/renat/www/clean.ringo/www/control/_templates/pagemanager/editpage.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', '/home/renat/www/clean.ringo/www/control/_templates/pagemanager/editpage.tpl', 19, false),)), $this); ?>

<p align="center"> [ <?php echo $this->_tpl_vars['locale']['MSG_page']; ?>
  : <a href="/control/page_management/"><?php echo $this->_tpl_vars['locale']['MSG_back2pagemanager']; ?>
</a>

<?php if ($_GET['mode'] != 'addpage'): ?>| <b><?php echo $this->_tpl_vars['locale']['MSG_properties']; ?>
</b>

| <a href="/control/add_plugins/?page=<?php echo $_GET['edit_page']; ?>
"><?php echo $this->_tpl_vars['locale']['MSG_content']; ?>
</a>

| <a href="#"><?php echo $this->_tpl_vars['locale']['MSG_view']; ?>
</a>

| <?php endif; ?>
 ]</p>


<form method="post">


<p align="Center">
<table align="center" cellpadding="5" cellspacing="1" border="0" bgcolor="#eeeeee">
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_pagefilename']; ?>
:</td><td><input type="edit" name="filename" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['pagedata']['filename'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_POST['filename']) : smarty_modifier_default($_tmp, @$_POST['filename'])); ?>
"  size="50"><?php if ($this->_tpl_vars['formerr']['filename']): ?>&nbsp; <span style="color:red">Это поле обязательно для заполнения</span><?php endif; ?></td></tr>
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_pagetitle']; ?>
:</td><td><input type="edit" name="title" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['pagedata']['title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_POST['title']) : smarty_modifier_default($_tmp, @$_POST['title'])); ?>
" size="50"><?php if ($this->_tpl_vars['formerr']['title']): ?>&nbsp; <span style="color:red">Это поле обязательно для заполнения</span><?php endif; ?></td></tr>
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_pagemenutitle']; ?>
:</td><td><input type="edit" name="menuTitle" value="<?php echo $this->_tpl_vars['pagedata']['menuTitle']; ?>
" size="50"></td></tr>
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_template']; ?>
:</td><td><select name="template"><option value="0"><?php echo $this->_tpl_vars['locale']['MSG_notselected']; ?>
</option>
<?php $_from = $this->_tpl_vars['dwt']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['z']):
?>
<option id='tpl_<?php echo $this->_tpl_vars['z']; ?>
' value="<?php echo $this->_tpl_vars['z']; ?>
"><?php echo $this->_tpl_vars['z']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
<option value=""> == <?php echo $this->_tpl_vars['locale']['MSG_selecttpl']; ?>
 == </option>
<?php $_from = $this->_tpl_vars['extradwt']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?>
<option value="<?php echo $this->_tpl_vars['p']['id']; ?>
" id='tpl_<?php echo $this->_tpl_vars['p']['id']; ?>
'><?php echo $this->_tpl_vars['p']['alias']; ?>
(<?php echo $this->_tpl_vars['p']['global_template']; ?>
)</option>
<?php endforeach; endif; unset($_from); ?>
</select> <?php if ($this->_tpl_vars['formerr']['template']): ?>&nbsp; <span style="color:red">Необходимо выбрать шаблон</span><?php endif; ?></td></tr>
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_order']; ?>
:</td><td><input type="edit" name="ord" value="<?php if ($this->_tpl_vars['ord']): ?><?php echo $this->_tpl_vars['ord']; ?>
<?php else: ?><?php echo $this->_tpl_vars['pagedata']['ord']; ?>
<?php endif; ?>" size="50"></td></tr>

<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_keywords']; ?>
:</td><td><textarea name="keywords" rows="5" cols="40"><?php echo ((is_array($_tmp=@$this->_tpl_vars['pagedata']['keywords'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_POST['keywords']) : smarty_modifier_default($_tmp, @$_POST['keywords'])); ?>
</textarea></td></tr>
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_description']; ?>
:</td><td><textarea name="description" rows="5" cols="40"><?php echo ((is_array($_tmp=@$this->_tpl_vars['pagedata']['description'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_POST['description']) : smarty_modifier_default($_tmp, @$_POST['description'])); ?>
</textarea></td></tr>
<tr bgcolor="#ffffff"><td><?php echo $this->_tpl_vars['locale']['MSG_includemenu']; ?>
:</td><td><input type="checkbox" value="1" name="include" <?php if ($this->_tpl_vars['pagedata']['include'] == 1): ?>checked<?php endif; ?>></td></tr>
<input type="hidden" name="parent_page_id" value="<?php if ($_GET['parent']): ?><?php echo $_GET['parent']; ?>
<?php else: ?><?php echo $this->_tpl_vars['pagedata']['parent_page_id']; ?>
<?php endif; ?>">
<tr bgcolor="#eeeeee"><td colspan="2" align="Center"><input type="submit" value="<?php echo $this->_tpl_vars['locale']['MSG_submit']; ?>
"></td></tr>
</form>
</table>
</p>

<?php if ($this->_tpl_vars['pagedata']['template']): ?>
<script>
document.getElementById('tpl_<?php echo $this->_tpl_vars['pagedata']['template']; ?>
').selected=true;
</script>
<?php endif; ?>
 